##########################################
## Copyright 2012-2013 Ceruti Francesco
##
##
## This file is part of LiSP (Linux Show Player).
##
## LiSP (Linux Show Player) is free software: you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## LiSP (Linux Show Player) is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with LiSP (Linux Show Player).  If not, see <http://www.gnu.org/licenses/>.
##########################################

from PyQt4.QtGui import QWidget


class PreferencesWidget(QWidget):

    NAME = 'NoName'

    def __init__(self, size, parent=None):
        super(PreferencesWidget, self).__init__(parent)
        self.resize(size)

    def enableCheck(self, enable):
        '''All options must be grouped into QGroupBox,
        on multi-edit mode this method is called for
        enable check on groupBoxes and set the (check) values to False.'''

    def getConfiguration(self):
        '''Puts the setting values in a dict, only if its groupbox is checked,
        and return the dict.'''
        return {}

    def setConfiguration(self, conf):
        '''Read current setting form conf parameter (global configuration).
        if a key is not present disables the corresponding element'''
